package com.njwb;

import com.njwb.Util.UtilService;
import com.njwb.pojo.Supplier;
import com.njwb.pojo.Users;

import java.util.List;

public class main {

    public static void main(String[] args) {
        UtilService service = new UtilService();


        service.logn("张三","123456",1);


        /* UtilService service = new UtilService();

         *//*        // 查询所有供应商
        List<Supplier> suppliers = service.getSupplierByName("小米");
        for (Supplier s : suppliers) {
            System.out.println(s);
        }*//*

        // 查询所有用户
        List<Users> users = service.getUsersByUsername("张三");
        for (Users u : users) {
            System.out.println(u);
        }*/

        /*  UtilService service = new UtilService();

         *//*
        // 查询所有账单
        System.out.println("=== 所有账单 ===");
        service.getBill(null, null).forEach(System.out::println);

        // 按商品名模糊查
        System.out.println("=== 按商品名查 ===");
        service.getBill("手机", null).forEach(System.out::println);
*//*

        // 按支付状态查
        System.out.println("=== 按支付状态查 ===");
        service.getBill(null, true).forEach(System.out::println);
    }*/
    }

}